﻿Imports System.ComponentModel
Imports System.ComponentModel.Design
Imports System.Reflection

Public Class CtCollectionEditor
    Inherits CollectionEditor




    Public Sub New(ByVal newType As Type)
        MyBase.new(newType)
    End Sub

    Protected Overrides Function CanSelectMultipleInstances() _
       As Boolean
        Return False
    End Function

    Protected Overrides Function CreateCollectionItemType() As Type
        Return GetType(ContourSub)
    End Function


    Protected Overrides Function CreateInstance(ByVal itemType As System.Type) As Object
        Return MyBase.CreateInstance(itemType)
    End Function

    Protected Overrides Function CreateCollectionForm() As System.ComponentModel.Design.CollectionEditor.CollectionForm
        Return MyBase.CreateCollectionForm()
    End Function

    Protected Overrides Function GetDisplayText(ByVal value As Object) As String
        Return MyBase.GetDisplayText(value)
    End Function


    Protected Class CTForm
        Inherits CollectionEditor.CollectionForm
        Public Sub New(ByVal ceditor As CollectionEditor)
            MyBase.new(ceditor)


        End Sub

        Protected Overrides ReadOnly Property CanRaiseEvents() As Boolean
            Get
                'Return MyBase.CanRaiseEvents
                Return False
            End Get
        End Property

        Protected Overrides Sub OnEditValueChanged()

        End Sub
    End Class

End Class
